package com.xbongbong.pay.platform.wechatpay.pojo.response.partner;

import com.alibaba.fastjson.annotation.JSONField;
import com.xbongbong.pay.platform.wechatpay.pojo.response.WeChatBaseResponse;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 *
 * @author 魏荣杰
 * @date 2021/2/8 16:48
 * @since
 * @version
 */
@Setter
@Getter
public class WeChatPayPartnerH5TransactionsResponse extends WeChatBaseResponse {
    private static final long serialVersionUID = -7427084164369611475L;

    /**
     * h5_url为拉起微信支付收银台的中间页面，可通过访问该url来拉起微信客户端，完成支付，h5_url的有效期为5分钟。
     * 示例值：https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx2016121516420242444321ca0631331346&package=1405458241
     */
    @NotBlank
    @Size(min = 1, max = 512)
    @JSONField(name = "h5_url")
    private String h5Url;
}
